From c4a5c99074ee7df298946cbd32649cff0da0cd09 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Wed, 10 Aug 2011 15:19:56 -0400 Subject: [PATCH] Fix cut-and-paste error in GtkEntryAccessible/GtkLabelAccessible The y position of the character depends on the window's y coordinate, not its x coordinate. --- gtk/a11y/gtkentryaccessible.c | 2 +- gtk/a11y/gtklabelaccessible.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/a11y/gtkentryaccessible.c b/gtk/a11y/gtkentryaccessible.c index 6c4180a3f6..e0ff6dfc09 100644 --- a/gtk/a11y/gtkentryaccessible.c +++ b/gtk/a11y/gtkentryaccessible.c @@ -442,7 +442,7 @@ gtk_entry_accessible_get_character_extents (AtkText *text, gdk_window_get_origin (window, &x_window, &y_window); *x = x_window + x_layout + char_rect.x; - *y = x_window + y_layout + char_rect.y; + *y = y_window + y_layout + char_rect.y; *width = char_rect.width; *height = char_rect.height; diff --git a/gtk/a11y/gtklabelaccessible.c b/gtk/a11y/gtklabelaccessible.c index b794385e7d..fd291d787d 100644 --- a/gtk/a11y/gtklabelaccessible.c +++ b/gtk/a11y/gtklabelaccessible.c @@ -574,7 +574,7 @@ gtk_label_accessible_get_character_extents (AtkText *text, gdk_window_get_origin (window, &x_window, &y_window); *x = x_window + x_layout + char_rect.x; - *y = x_window + y_layout + char_rect.y; + *y = y_window + y_layout + char_rect.y; *width = char_rect.width; *height = char_rect.height; -- 2.30.2